if else and switch statement